-
-
Notifications
You must be signed in to change notification settings - Fork 15
Improve performance of SqlParser::getNextPlaceholder() method
#482
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Any benchmarks? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR optimizes PostgreSQL SQL parsing by speeding up how the next placeholder is found, specifically by making identifier skipping more efficient inside SqlParser::getNextPlaceholder().
Changes:
- Introduced a cached identifier character set (
IDENTIFIER_CHARS) for fast scanning. - Replaced the per-character
matchloop inskipIdentifier()with astrspn()-based implementation.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #482 +/- ##
============================================
- Coverage 96.70% 96.68% -0.03%
+ Complexity 408 406 -2
============================================
Files 67 67
Lines 1214 1206 -8
============================================
- Hits 1174 1166 -8
Misses 40 40 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Related PR
AbstractSqlParserclass methods db#1159